package cn.com.self.apis.portal.entity;

import cn.com.selfsoft.smartcity.commons.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 文件中间表
 *
 * @author CRL
 * @date 2021/1/9 21:28
 */
@EqualsAndHashCode(callSuper = true)
@TableName("u_file_relation")
@Data
public class FileRelationEntity extends AbstractEntity {

    @NotNull(message = "对象id不能为空")
    @NotBlank(message = "对象id不能为空")
    @ApiModelProperty(value = "对象id(存放关系附件信息表id)")
    private String objId;

    @NotNull(message = "附件id不能为空")
    @NotBlank(message = "附件id不能为空")
    @ApiModelProperty(value = "附件id）")
    private String fileId;

    @ApiModelProperty(value = "附件分类（type=举报.......等）")
    private String type;

}
